package kgc.qy.service.impl;

import kgc.qy.mapper.DepartmentMapper;
import kgc.qy.mapper.SysUsersMapper;
import kgc.qy.pojo.Department;
import kgc.qy.pojo.SysUsers;
import kgc.qy.service.IRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class RoleServiceImpl implements IRoleService {

    @Autowired
    private DepartmentMapper departmentMapper;
    @Autowired
    private SysUsersMapper sysUsersMapper;

    @Override
    public List<Department> selectDep() {
        List<Department> departments = departmentMapper.selectDep();
        return departments;
    }


}
